<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>品牌列表的页面</title>
</head>
<body>
<button type="button" onclick="toAdd()" class="btn btn-primary">品牌入驻</button>
	<table class="table">
		<tr>
			<th>编号</th>
			<th>名称</th>
			<th>图片</th>
		</tr>
		<c:forEach items="${info.list }" var="b">
			<tr>
				<td>${b.id }</td>
				<td>${b.name }</td>
				<td><img height="55px" src="/img/${b.picPath }"></img></td>
			</tr>
		
		</c:forEach>
	</table>
	<jsp:include page="/WEB-INF/view/common/pages.jsp"></jsp:include>
</body>

<script type="text/javascript">
	function goPage(pageNum){
		var url="/brand/list?pageNum="+pageNum;
		
		$("#workArea").load(url);
	}
	function toAdd(){
		$("#workArea").load("brand/toAdd")
	}
	
</script>
</html>